import request from '../utils/request';//导入帮助类里面的request对象，帮助我们发送请求给后端api接口

export const loginUser = query => {
    return request({
        url: '/api/Users/login',
        method: 'post',//get请求用data
        data: query
    });
};

//刷新Token
export const fetchData = query => {
    return request({
        url: '/api/Jwt/JwtToken',
        method: 'get',//get请求用data
        params: query
    });
};